using System;
using ASmile.ORM.Entitys;

namespace ASmile.DBModel
{
	public partial class Dict_WordCode : EntityBase
	{
		private System.String _WordName;
		/// <summary>
		/// WordName
		/// </summary>
		[Entity(ColumnName = CNWordName, IsPrimaryKey = true, IsNotNull = true)]
		public System.String WordName
		{
			get { return _WordName; }
			set
			{
				_WordName = value;
				base.SetFieldChanged(CNWordName) ;
			}
		}

		private System.Byte? _WordIndex;
		/// <summary>
		/// WordIndex
		/// </summary>
		[Entity(ColumnName = CNWordIndex)]
		public System.Byte? WordIndex
		{
			get { return _WordIndex; }
			set
			{
				_WordIndex = value;
				base.SetFieldChanged(CNWordIndex) ;
			}
		}

		private System.String _WordPY;
		/// <summary>
		/// WordPY
		/// </summary>
		[Entity(ColumnName = CNWordPY)]
		public System.String WordPY
		{
			get { return _WordPY; }
			set
			{
				_WordPY = value;
				base.SetFieldChanged(CNWordPY) ;
			}
		}

		private System.String _WordWB;
		/// <summary>
		/// WordWB
		/// </summary>
		[Entity(ColumnName = CNWordWB)]
		public System.String WordWB
		{
			get { return _WordWB; }
			set
			{
				_WordWB = value;
				base.SetFieldChanged(CNWordWB) ;
			}
		}

		private System.String _Remark;
		/// <summary>
		/// Remark
		/// </summary>
		[Entity(ColumnName = CNRemark)]
		public System.String Remark
		{
			get { return _Remark; }
			set
			{
				_Remark = value;
				base.SetFieldChanged(CNRemark) ;
			}
		}

		private System.Boolean _IsEnable;
		/// <summary>
		/// 是否启用
		/// </summary>
		[Entity(ColumnName = CNIsEnable, IsNotNull = true)]
		public System.Boolean IsEnable
		{
			get { return _IsEnable; }
			set
			{
				_IsEnable = value;
				base.SetFieldChanged(CNIsEnable) ;
			}
		}

		#region 字段名的定义
		public const string CNWordName = "WordName";
		public const string CNWordIndex = "WordIndex";
		public const string CNWordPY = "WordPY";
		public const string CNWordWB = "WordWB";
		public const string CNRemark = "Remark";
		public const string CNIsEnable = "IsEnable";
		#endregion

	}
}
